const router = require('koa-router')()

router.get('/', async (ctx, next) => {
  await ctx.render('index', {
    title: 'Hello Koa 2!'
  })
})

// 字典
const dist = require('./dict')
router.use('/dict',dist.routes(),dist.allowedMethods())

// 采集数据
const take = require('./take')
router.use('/take',take.routes(),take.allowedMethods())

module.exports = router
